package com.lastproject.web.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import com.lastproject.dto.QuestionStatsDTO;

///**
// * Session Bean implementation class AnswerStatsBean
// */
@ManagedBean(name = "surveyStatsQBean")
@RequestScoped
public class SurveyStatsQBean {

	private int idSurv;
	
	@ManagedProperty(value = "#{question}")
	private QuestionStatsDTO questionStatsDTO;
	
	public int getIdSurv() {
		return idSurv;
	}

	public void setIdSurv(int idSurv) {
		this.idSurv = idSurv;
		
	}
//
//	@ManagedProperty(value = "#{questionDTO}")
//	private QuestionDTO questionDTO;
//	@EJB
//	QuestionDAORemote questionDao;

	public SurveyStatsQBean() {

	}
	
//	This was commented after adding QuestionStatsDTO
//	If this class is removed, uncomment.
//	DE AICI S-A MODIFICAT
//	public SurveyStatsQBean(QuestionDTO questionDTO) {
//		this.questionDTO = questionDTO;
//	}
	
	public SurveyStatsQBean(QuestionStatsDTO questionStatsDTO) {
		this.questionStatsDTO = questionStatsDTO;
	}
	
//	PANA AICI
	
	
//	public QuestionDTO getQuestionDTO() {
//		return questionDTO;
//	}
//
//	public void setQuestionDTO(QuestionDTO questionDTO) {
//		this.questionDTO = questionDTO;
//	}
	
	public SurveyStatsQBean(int idSurv) {
		this.idSurv = idSurv;
	}

	public QuestionStatsDTO getQuestionStatsDTO() {
		return questionStatsDTO;
	}

	public void setQuestionStatsDTO(QuestionStatsDTO questionStatsDTO) {
		this.questionStatsDTO = questionStatsDTO;
	}
	
	

}
